//
//  TZFirstVc.m
//  BSBDJ
//
//  Created by user on 16/5/27.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TZFirstVc.h"

@implementation TZFirstVc

- (void)viewDidLoad{
    [super viewDidLoad];
    
   
    [self addGroup0];
    [self addGroup1];
}

- (void)addGroup0{
    //组
    TZGroupModel *group = [TZGroupModel new];
    group.headerTitle = @"功能设置";
    //行
    TZRowModel *row1 = [TZRowModel rowmodelWithIcon:nil name:@"字体大小"];
    TZRowModel *row2 = [TZSwitchModel rowmodelWithIcon:nil name:@"转发时收藏"];
    TZRowModel *row3 = [TZSwitchModel rowmodelWithIcon:nil name:@"夜间模式"];
    
    group.items = @[row1,row2,row3];
    [self.groups addObject:group];
}

- (void)addGroup1{
    //组
    TZGroupModel *group = [TZGroupModel new];
    group.headerTitle = @"其他";
    //行
    TZRowModel *row1 = [TZRowModel rowmodelWithIcon:nil name:@"离线下载"];
    TZRowModel *row2 = [TZSwitchModel rowmodelWithIcon:nil name:@"清理缓存"];
    TZRowModel *row3 = [TZSwitchModel rowmodelWithIcon:nil name:@"推荐朋友"];
    TZRowModel *row4 = [TZSwitchModel rowmodelWithIcon:nil name:@"帮助"];
    TZRowModel *row5 = [TZSwitchModel rowmodelWithIcon:nil name:@"当前版本"];
    TZRowModel *row6 = [TZSwitchModel rowmodelWithIcon:nil name:@"关于我们"];
    TZRowModel *row7 = [TZSwitchModel rowmodelWithIcon:nil name:@"设备信息"];
    TZRowModel *row8 = [TZSwitchModel rowmodelWithIcon:nil name:@"隐私政策"];
    TZRowModel *row9 = [TZSwitchModel rowmodelWithIcon:nil name:@"打分支持不得姐!"];


    group.items = @[row1,row2,row3,row4,row5,row6,row7,row8,row9];
    [self.groups addObject:group];
}
@end
